package com.itheima.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.domain.Book;

public interface IBookService extends IService<Book> {

    //保存图书
    boolean saveBook(Book book);

    //修改图书
    boolean modify(Book book);

    //删除图书
    boolean delete(Integer id);

    //分页查询
    IPage<Book> getPage(int currentPage, int pageSize);

    IPage<Book> getPage(int currentPage, int pageSize, Book book);
}
